package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * OrderInfoGoods generated by hbm2java
 */
@Entity
@Table(name = "order_info_goods", catalog = "good_fresh")
public class OrderInfoGoods implements java.io.Serializable {

	private Integer orderInfoGoods;
	private OrderInfo orderInfo;
	private String orderInfoGoodsIntro;
	private Long orderInfoGoodsPrise;
	private Integer orderInfoGoodsNumber;
	private String orderInfoGoodsExplain;
	private String orderInfoGoodsImages;
	private Date createTime;
	private Date updateTime;
	private String orderInfoGoodsOne;
	private String orderInfoGoodsTwo;

	public OrderInfoGoods() {
	}

	public OrderInfoGoods(OrderInfo orderInfo, String orderInfoGoodsIntro, Long orderInfoGoodsPrise,
			Integer orderInfoGoodsNumber, String orderInfoGoodsExplain, String orderInfoGoodsImages, Date createTime,
			Date updateTime, String orderInfoGoodsOne, String orderInfoGoodsTwo) {
		this.orderInfo = orderInfo;
		this.orderInfoGoodsIntro = orderInfoGoodsIntro;
		this.orderInfoGoodsPrise = orderInfoGoodsPrise;
		this.orderInfoGoodsNumber = orderInfoGoodsNumber;
		this.orderInfoGoodsExplain = orderInfoGoodsExplain;
		this.orderInfoGoodsImages = orderInfoGoodsImages;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.orderInfoGoodsOne = orderInfoGoodsOne;
		this.orderInfoGoodsTwo = orderInfoGoodsTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "ORDER_INFO_GOODS", unique = true, nullable = false)
	public Integer getOrderInfoGoods() {
		return this.orderInfoGoods;
	}

	public void setOrderInfoGoods(Integer orderInfoGoods) {
		this.orderInfoGoods = orderInfoGoods;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ORDER_INFO_ID")
	public OrderInfo getOrderInfo() {
		return this.orderInfo;
	}

	public void setOrderInfo(OrderInfo orderInfo) {
		this.orderInfo = orderInfo;
	}

	@Column(name = "ORDER_INFO_GOODS_INTRO")
	public String getOrderInfoGoodsIntro() {
		return this.orderInfoGoodsIntro;
	}

	public void setOrderInfoGoodsIntro(String orderInfoGoodsIntro) {
		this.orderInfoGoodsIntro = orderInfoGoodsIntro;
	}

	@Column(name = "ORDER_INFO_GOODS_PRISE", precision = 10, scale = 0)
	public Long getOrderInfoGoodsPrise() {
		return this.orderInfoGoodsPrise;
	}

	public void setOrderInfoGoodsPrise(Long orderInfoGoodsPrise) {
		this.orderInfoGoodsPrise = orderInfoGoodsPrise;
	}

	@Column(name = "ORDER_INFO_GOODS_NUMBER")
	public Integer getOrderInfoGoodsNumber() {
		return this.orderInfoGoodsNumber;
	}

	public void setOrderInfoGoodsNumber(Integer orderInfoGoodsNumber) {
		this.orderInfoGoodsNumber = orderInfoGoodsNumber;
	}

	@Column(name = "ORDER_INFO_GOODS_EXPLAIN")
	public String getOrderInfoGoodsExplain() {
		return this.orderInfoGoodsExplain;
	}

	public void setOrderInfoGoodsExplain(String orderInfoGoodsExplain) {
		this.orderInfoGoodsExplain = orderInfoGoodsExplain;
	}

	@Column(name = "ORDER_INFO_GOODS_IMAGES")
	public String getOrderInfoGoodsImages() {
		return this.orderInfoGoodsImages;
	}

	public void setOrderInfoGoodsImages(String orderInfoGoodsImages) {
		this.orderInfoGoodsImages = orderInfoGoodsImages;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "ORDER_INFO_GOODS_ONE", length = 25)
	public String getOrderInfoGoodsOne() {
		return this.orderInfoGoodsOne;
	}

	public void setOrderInfoGoodsOne(String orderInfoGoodsOne) {
		this.orderInfoGoodsOne = orderInfoGoodsOne;
	}

	@Column(name = "ORDER_INFO_GOODS_TWO", length = 25)
	public String getOrderInfoGoodsTwo() {
		return this.orderInfoGoodsTwo;
	}

	public void setOrderInfoGoodsTwo(String orderInfoGoodsTwo) {
		this.orderInfoGoodsTwo = orderInfoGoodsTwo;
	}

}
